package com.vf.activity.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.vf.common.annotation.Excel;
import com.vf.common.core.domain.BaseEntity;

/**
 * 活动参与者（最终确认的参与者）对象 activity_participants
 * 
 * @author LBS
 * @date 2025-06-04
 */
public class ActivityParticipants extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 活动ID */
    private Long activityId;

    /** 用户ID */
    private Long userId;

    /** 参加活动 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "参加活动", width = 30, dateFormat = "yyyy-MM-dd")
    private Date joinedAt;

    public void setActivityId(Long activityId) 
    {
        this.activityId = activityId;
    }

    public Long getActivityId() 
    {
        return activityId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setJoinedAt(Date joinedAt) 
    {
        this.joinedAt = joinedAt;
    }

    public Date getJoinedAt() 
    {
        return joinedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("activityId", getActivityId())
            .append("userId", getUserId())
            .append("joinedAt", getJoinedAt())
            .toString();
    }
}
